<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VAdvantageSvc" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VAdvantageSvc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost/advantage55/VAdvantageSvc/DataServiceBasic2.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:complexType name="CustomException">
    <xs:sequence>
      <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="InnerException" nillable="true" type="tns:CustomException" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CustomException" nillable="true" type="tns:CustomException" />
  <xs:complexType name="AttachmentInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="AttachmentEntries" nillable="true" type="tns:ArrayOfAttachmentEntry" />
      <xs:element minOccurs="0" name="Data" nillable="true" type="xs:base64Binary" />
      <xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Size" type="xs:long" />
      <xs:element minOccurs="0" name="StoredFileName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TextMessage" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AttachmentInfo" nillable="true" type="tns:AttachmentInfo" />
  <xs:complexType name="ArrayOfAttachmentEntry">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AttachmentEntry" nillable="true" type="tns:AttachmentEntry" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAttachmentEntry" nillable="true" type="tns:ArrayOfAttachmentEntry" />
  <xs:complexType name="AttachmentEntry">
    <xs:sequence>
      <xs:element minOccurs="0" name="Data" nillable="true" type="xs:base64Binary" />
      <xs:element minOccurs="0" name="Index" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AttachmentEntry" nillable="true" type="tns:AttachmentEntry" />
  <xs:complexType name="ClientSetUp">
    <xs:sequence>
      <xs:element minOccurs="0" name="C_Country_ID" type="xs:int" />
      <xs:element minOccurs="0" name="C_Region_ID" type="xs:int" />
      <xs:element minOccurs="0" name="FCity" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FClientName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FOrgName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FUserClient" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FUserOrg" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="cfBPartner" type="xs:boolean" />
      <xs:element minOccurs="0" name="cfMCampaign" type="xs:boolean" />
      <xs:element minOccurs="0" name="cfProduct" type="xs:boolean" />
      <xs:element minOccurs="0" name="cfProject" type="xs:boolean" />
      <xs:element minOccurs="0" name="cfSRegion" type="xs:boolean" />
      <xs:element minOccurs="0" name="currency" nillable="true" type="tns:KeyName" />
      <xs:element minOccurs="0" name="pCurrency" nillable="true" type="tns:KeyName" />
      <xs:element minOccurs="0" name="pRegion" nillable="true" type="tns:KeyName" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ClientSetUp" nillable="true" type="tns:ClientSetUp" />
  <xs:complexType name="KeyName">
    <xs:sequence>
      <xs:element minOccurs="0" name="key" type="xs:int" />
      <xs:element minOccurs="0" name="value" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="KeyName" nillable="true" type="tns:KeyName" />
  <xs:complexType name="TenantInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="AdminRole" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AdminUser" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AdminUserPwd" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Log" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrgName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrgUser" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrgUserPwd" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TenantName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserRole" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="TenantInfo" nillable="true" type="tns:TenantInfo" />
  <xs:complexType name="UserInformation">
    <xs:sequence>
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Host" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="HostPort" type="xs:int" />
      <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SmtpAuthentication" type="xs:boolean" />
      <xs:element minOccurs="0" name="UseSSL" type="xs:boolean" />
      <xs:element minOccurs="0" name="Username" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="UserInformation" nillable="true" type="tns:UserInformation" />
  <xs:complexType name="ArrayOfNewMailMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="NewMailMessage" nillable="true" type="tns:NewMailMessage" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfNewMailMessage" nillable="true" type="tns:ArrayOfNewMailMessage" />
  <xs:complexType name="NewMailMessage">
    <xs:sequence>
      <xs:element minOccurs="0" name="Attachments" nillable="true" type="tns:ArrayOfAttachmentInfo" />
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Bcc" nillable="true" type="q1:ArrayOfstring" />
      <xs:element minOccurs="0" name="Body" nillable="true" type="xs:string" />
      <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Cc" nillable="true" type="q2:ArrayOfstring" />
      <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
      <xs:element minOccurs="0" name="From" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsHtml" type="xs:boolean" />
      <xs:element minOccurs="0" name="Sender" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Subject" nillable="true" type="xs:string" />
      <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="To" nillable="true" type="q3:ArrayOfstring" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NewMailMessage" nillable="true" type="tns:NewMailMessage" />
  <xs:complexType name="ArrayOfAttachmentInfo">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AttachmentInfo" nillable="true" type="tns:AttachmentInfo" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAttachmentInfo" nillable="true" type="tns:ArrayOfAttachmentInfo" />
  <xs:complexType name="DraftMailMessage">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:NewMailMessage">
        <xs:sequence>
          <xs:element minOccurs="0" name="UniqueId" nillable="true" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="DraftMailMessage" nillable="true" type="tns:DraftMailMessage" />
  <xs:complexType name="ModelYTInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="Entries" nillable="true" type="tns:ArrayOfModelYTEntryInfo" />
      <xs:element minOccurs="0" name="TotalResults" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ModelYTInfo" nillable="true" type="tns:ModelYTInfo" />
  <xs:complexType name="ArrayOfModelYTEntryInfo">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ModelYTEntryInfo" nillable="true" type="tns:ModelYTEntryInfo" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfModelYTEntryInfo" nillable="true" type="tns:ArrayOfModelYTEntryInfo" />
  <xs:complexType name="ModelYTEntryInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="Category" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Content" nillable="true" type="tns:ArrayOfModelYTMediaContent" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Image" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RatingAverage" type="xs:double" />
      <xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ThumbnailImage" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UploadedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="VideoID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ViewCount" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ModelYTEntryInfo" nillable="true" type="tns:ModelYTEntryInfo" />
  <xs:complexType name="ArrayOfModelYTMediaContent">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ModelYTMediaContent" nillable="true" type="tns:ModelYTMediaContent" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfModelYTMediaContent" nillable="true" type="tns:ArrayOfModelYTMediaContent" />
  <xs:complexType name="ModelYTMediaContent">
    <xs:sequence>
      <xs:element minOccurs="0" name="Duration" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Url" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ModelYTMediaContent" nillable="true" type="tns:ModelYTMediaContent" />
</xs:schema>